package com.yy.ttmodule.activity;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;

public class CmdHandler extends Handler {
    private BaseActivity mBaseActivity;

    CmdHandler(Looper looper, BaseActivity presenter) {
        super(looper);
        this.mBaseActivity = presenter;
    }

    @Override
    public void handleMessage(Message msg) {
        if (mBaseActivity == null) {
            return;
        }
        mBaseActivity.handleCmdMsg(msg);
    }
}